const express = require('express');
const app = express();
const bodyParser = require('body-parser');
const router = require('./router/router.js');
app.use(express.static('datas'))
app.use(bodyParser.urlencoded({extended: false}));
app.use(bodyParser.json());
app.all(function(req, res, next){
	res.set('Access-Control-Allow-Origin', '*');
	next();
});
app.use('/', router);
app.listen(3000, function(){
	console.log('server start...');
});
